﻿@model LY.Manage.Model.tbl_canshu

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />

    <title>修改参数</title>
    <!--引入文件-->
    <link href="~/Content/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/Content/themes/icon.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Scripts/jquery.easyui.min.js"></script>
    <script src="~/Scripts/easyui-lang-zh_CN.js"></script>
    <script src="~/Scripts/datapattern.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <link href="~/Content/BaseStyle.css" rel="stylesheet" />

    <script src="~/Scripts/lyUtils.js"></script>
    <script src="~/Scripts/ly.easyui.check.ext.js"></script>

    <script src="~/My97DatePicker/WdatePicker.js"></script>



    <script type="text/javascript">

        $(function () {
            console.log(getUrlParam("id"));
            $('#id').val(getUrlParam("id"));
        });

        function subForm() {
            console.log("subForm--submit");
            $("#fmMain").submit();
        }
        function afterEdit(data) {
            console.log("sub-after-add:" + data);
            //调用父窗体中的方法
            window.parent.afterEdit(data);
        }
    </script>
</head>
<body>
    @using (Ajax.BeginForm("EditInfo", "CanShu", new { }, new AjaxOptions()
{
    HttpMethod = "post",
    OnSuccess = "afterEdit"
}, new { id = "fmMain" }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        <input type="hidden" id="id" name="id" />


        <table>

            <tr><td>名称:</td><td>@Html.TextBoxFor(model => model.canshu, new { @class = "easyui-validatebox", @required = "true" })</td></tr>
            <tr><td>值:</td><td>@Html.TextBoxFor(model => model.value, new { @class = "easyui-validatebox", @required = "true" })</td></tr>
            <tr>
                <td>备注:</td>
                <td>
                    @Html.TextAreaFor(model => model.note, new { rows = "3", style = "width:99%" })
                </td>
            </tr>

        </table>
    }
</body>
</html>
